package com.kelaite.procurement.service;

import java.util.Date;
import java.util.List;

import com.kelaite.procurement.dto.PurchaseOrderDTO;
import com.kelaite.procurement.entity.TPurchaseOrder;
import com.kelaite.procurement.entity.TSalesOrder;

public interface PurchaseOrderService {

	public PurchaseOrderDTO save(PurchaseOrderDTO purchaseOrderDTO);

	public void deleteByPrimaryKey(Long id);

	public void deleteByObject(TPurchaseOrder persistence);

	public TPurchaseOrder getObject(Long id);

	public List<TPurchaseOrder> getAll();

	public List<TPurchaseOrder> getByProperty(String property, Object value);

	public List<TPurchaseOrder> getByPropertyByStatus(String property, Object value,Short orderStatus);
	
	public String getCurrencyByOrderId(Long purchaseOrderId);
	
	public Float getPriceByOrderId(Long purchaseOrderId);
	
	public void updatePurchaseEstimate(Long purchaseOrderId,String evlautionDesc,String evaluationScore4,Date updateTime,String updateBy);
	
	
	public void updatePurchaseEstimateManyGrade(Long purchaseOrderId,String evlautionDesc,String evaluationScore2,String evaluationScore3,String evaluationScore4,String evaluationScore5,Date updateTime,String updateBy);

	
}
